import 'package:flutter/material.dart';
import 'package:flutter_study/models/TestOne.dart';

class TestSelectorNotifier extends ChangeNotifier {

  TestOne _testOne ;

  String get age => "年龄:${_testOne.age}";
  String get name => "名字：${_testOne.name}";

  TestSelectorNotifier(this._testOne);
  void updateAge(String ageA){
     _testOne.age  = ageA;
      notifyListeners();
   }

   void updateName(String nameA){
     _testOne.name = nameA;
     notifyListeners();
   }



}